﻿

namespace Mulala.Cavan.Domain.MainBoundedContext.MulalaModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Core.Persistent;
    using Mulala.Cavan.Domain.MainBoundedContext.InformationModule;
    using Mulala.Cavan.Domain.MainBoundedContext.SearchModule;
    using Mulala.Cavan.Core.MyLinq;

    public class NoticeSpecification : ISpecification<Notice, NoticeSearch>
    {
        #region ISpecification<Notice,NoticeSearch> Members

        public NoticeSearch SearchParams
        {
            get;
            set;
        }

        #endregion

        #region ISpecification<Notice> Members

        public System.Linq.Expressions.Expression<Func<Notice, bool>> Expression
        {
            get
            {
                IQueryBuilder<Notice> queryBuilder = QueryBuilder.Create<Notice>();

                return queryBuilder.Expression.Expand();
            }
        }

        #endregion
    }
}
